package factory;

public class Test {
    public static void main(String[] args) {
        FruitsFactory fruitsFactory=new FruitsFactory();
        Apple apple=fruitsFactory.createFruits(Apple.class);
        apple.color();
        apple.eat();
        Fruits orange=fruitsFactory.createFruits(Orange.class);
        orange.color();
        orange.eat();

    }
}
